import {createApp} from 'vue'
import App from './App.vue'

import 'normalize.css'
import './styles/index.scss'

import ElementPlus from 'element-plus'
import {zhCn} from "element-plus/es/locale/index"
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import SvgIcon from '~virtual/svg-component'
import * as elIcons from '@element-plus/icons-vue'

const app = createApp(App)

app.use(ElementPlus, {locale: zhCn})
app.component(SvgIcon.name, SvgIcon)
for (let icon in elIcons) {
  app.component(`ElIcon${icon}`, elIcons[icon])
}
// 挂载
app.mount('#app')
